import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        //PrintWriter
        System.out.println("Hello World!");
        System.out.println("Hello World!!");
        System.out.printf("There is a number : %d \n", 2015);
        System.out.printf("There is a number : %10d \n", 2015);
        System.out.printf("There is a number 2015.302580233 and it is changed : %f \n", 2015.302580233);
        System.out.printf("There is a number  : %#x \n", 2015);
        System.out.printf("There is a number : %f that changed to %14.3f \n", 2015.302580233,2015.302580233);

        //Scanner
        Scanner myInput = new Scanner(System.in);
        int p = 0;
        System.out.print(p);
        while (myInput.hasNext()){
            String temp = myInput.next();
            p++;
            System.out.print(p);
        }

        System.out.println("String sth : ");
        String one = myInput.next();
        System.out.println(one);

        System.out.println("Double sth : ");
        double two = myInput.nextDouble();
        System.out.println(two);

        System.out.println("Int sth : ");
        int three = myInput.nextInt();
        System.out.println(three);

        System.out.println("Int sth : ");
        int four = myInput.nextInt();
        System.out.printf("%f \n",four);

        System.out.println("Int sth : ");
        double five = myInput.nextInt();
        System.out.println(five);

        //InputStream
        myInput.close();
        System.out.println("String sth : ");
        String six = myInput.next();
        System.out.println(six);

    }
}
